#ifndef YIGELLIPSEITEM_H
#define YIGELLIPSEITEM_H

// System includes
#include <QGraphicsEllipseItem>

// Local includes
#include "graphics/yigsynthgraphic.h"

/**
*   YigEllipseItem triggers its coordinating YigSynthGraphic container to emit a signal for networking
*/
class YigEllipseItem : public QGraphicsEllipseItem
{
public:

    explicit YigEllipseItem(YigSynthGraphic* synthGraphic, qreal x = 0, qreal y = 0, qreal width = 0, qreal height = 0,
                            QGraphicsItem* parent = 0);

    //enum { Type = UserType + 1 };
    //int type() const;
    void setPos( qreal x, qreal y );
    void setPos( const QPointF &pos );
    void moveBy( qreal dx, qreal dy );
    void setSyncedBrush( const QBrush &brush );
    YigSynthGraphic* mSynthGraphic;

private:


protected:
    virtual void mouseMoveEvent( QGraphicsSceneMouseEvent *event );
};

#endif // YIGELLIPSEITEM_H
